package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author 李俊
 * @Description
 * @Date 2021/7/14 17:54
 */
@SpringBootApplication
public class ConfigApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext =  SpringApplication.run(ConfigApplication.class, args);
        System.out.println("project name :" + applicationContext.getEnvironment().getProperty("project.name"));
    }

}
